package com.extension.company.view.details;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;


import com.extension.company.admin.R;
import com.extension.company.view.adapter.GoodsConfigAdapter;
import com.extension.company.view.home.hotactivity.HotActivityDetailActivity;

import java.util.ArrayList;
import java.util.List;

/**
 * 商品详情页下的fragment
 */
public class SecondFloorTroubleFragment extends Fragment {
	private HotActivityDetailActivity activity;
	public ListView lv_config;

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		this.activity = (HotActivityDetailActivity) activity;
	}

	@Nullable
	@Override
	public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_item_config, null);
		lv_config = (ListView) view.findViewById(R.id.lv_config);
		lv_config.setFocusable(false);

		List<GoodsConfigBean> data = new ArrayList<>();
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));

		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		data.add(new GoodsConfigBean("品牌", "Letv/乐视"));
		data.add(new GoodsConfigBean("型号", "LETV体感-超级枪王"));
		lv_config.setAdapter(new GoodsConfigAdapter(activity, data));
		return view;
	}
}
